package com.blb.generator.entity.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.blb.generator.entity.Admin;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@Accessors(chain = true)
public class StaffDto implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("username")
    private String username;
    @TableField("password")
    private String password;

    @TableField("age")
    private Integer age;

    @TableField("address")
    private String address;
    @TableField("is_deleted")
    private Integer isDeleted;

    @TableField("admin_id")
    private Long adminId;

    private Admin admin;
}
